package me.itsoo.artemis.framework.aop;

/**
 * AspectMethodHelper
 *
 * @author zxy
 */
public class AspectMethodHelper {

    /*public static Map<String, Object> getMappingOfParameters(JoinPoint point) {
        return getMappingOfParameters(getMethodParameterNames(point), point.getArgs());
    }

    public static Map<String, Object> getMappingOfParameters(String[] keys, Object[] values) {
        Assert.isTrue(keys.length == values.length, "The parameters does not match the values.");
        Map<String, Object> result = new LinkedHashMap<>();
        for (int i = 0; i < keys.length; i++) {
            result.put(keys[i], values[i]);
        }

        return result;
    }

    public static String[] getMethodParameterNames(JoinPoint point) {
        return getMethodSignature(point).getParameterNames();
    }

    public static Method getMethod(JoinPoint point) {
        return getMethodSignature(point).getMethod();
    }

    public static MethodSignature getMethodSignature(JoinPoint point) {
        return (MethodSignature) point.getSignature();
    }*/
}
